package com.yuyou.train.lesson.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.yuyou.train.service.api.lesson.entity.LessonClassUserRelation;

@Mapper
public interface LessonClassUserRelationMapper {
    int deleteByPrimaryKey(String id);
    
    int deleteByClassIdAndType(
    		@Param(value="classId") String classId,
    		@Param(value="type") String type);

    int insert(LessonClassUserRelation record);

    LessonClassUserRelation selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(LessonClassUserRelation record);
    
    List<LessonClassUserRelation> findLessClsUserRelation(LessonClassUserRelation record);
    
    LessonClassUserRelation selectLastFinishClass(String userId);


}